class LocalRss {
  int id;
  int tag;
  String icon;
  String title;
  String summary;
  String auth;
  String route;
  String parameter;
  String example;
  int priorityValue;
  String updateDate;

  LocalRss(
      this.id,
      this.tag,
      this.icon,
      this.title,
      this.summary,
      this.auth,
      this.route,
      this.parameter,
      this.example,
      this.priorityValue,
      this.updateDate);

  static LocalRss fromMap(Map<String, dynamic> map) {
    LocalRss localRss = new LocalRss(
        map['id'],
        map['tag'],
        map['icon'],
        map['title'],
        map['summary'],
        map['auth'],
        map['route'],
        map['parameter'],
        map['example'],
        map['priorityValue'],
        map['updateDate']);
    return localRss;
  }

  static List<LocalRss> fromMapList(dynamic mapList) {
    List<LocalRss> list = new List(mapList.length);
    for (int i = 0; i < mapList.length; i++) {
      list[i] = fromMap(mapList[i]);
    }
    return list;
  }

  Map<String, dynamic> toMap() {
    var map = Map<String, dynamic>();
    map['id'] = id;
    map['tag'] = tag;
    map['icon'] = icon;
    map['title'] = title;
    map['summary'] = summary;
    map['auth'] = auth;
    map['route'] = route;
    map['parameter'] = parameter;
    map['example'] = example;
    map['priorityValue'] = priorityValue;
    map['updateDate'] = updateDate;
    return map;
  }
}
